/* 
 * File:   Calculatrice.h
 * Author: Gab'z
 *
 * Created on 10 mai 2012, 15:46
 */

#ifndef CALCULATRICE_H
#define	CALCULATRICE_H
#include <string>
#include <cctype>    
class Calculatrice {
    static Calculatrice* instance;
    std::string inputText;
public:

    static Calculatrice* getInstance() {
        if (instance == 0) {
            instance = new Calculatrice();
        }
        return instance;
    }

    static void deleteInstance() {
        if (instance != 0) delete instance;
    }
private:
    Calculatrice();
    Calculatrice(const Calculatrice& orig);
    virtual ~Calculatrice();
};

struct ps_toupper {

    char operator()(char c) const {
        return std::toupper(static_cast<unsigned char> (c));
    }
};



#endif	/* CALCULATRICE_H */

